<?php
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1')
{
	$base_url = "http://www.iqtest.com/";
}
else 
{
	$base_url = "http://iqtest.msitrsu.com/";
}
?> 
 <div class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <a href="<?php echo $base_url;?>" class="navbar-brand">IQ TEST</a>
          <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <div class="navbar-collapse collapse" id="navbar-main">
          <ul class="nav navbar-nav">
            <li>
              <a href="<?php echo $base_url;?>member/member_history.php">ประวัติการทำแบบทดสอบ</a>
            </li>
			<li>
              <a href="<?php echo $base_url;?>member/member_history_all.php">ประวัติการทำแบบทดสอบท้ังหมด</a>
            </li>
          </ul>
          <?php if(isset($_SESSION['student_name'])){?>
          <ul class="nav navbar-nav navbar-right">
            <li>
              <a><?php echo "สวัสดี :) ".$_SESSION['student_name'];?></a>
            </li>
          </ul>
          <?php }?>
        </div>
      </div>
    </div>